package com.example.music_player_app.api.service.login;


import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface LoginService {
    @GET("/login/cellphone")
    Call<ResponseBody> get(@Query("phone") String phone, @Query("password") String password);

    @POST("/login/cellphone")
    @FormUrlEncoded
    Call<ResponseBody> post(@Field("phone") String phone, @Field("password") String password);
}
